console.log($);
        const $form =$('#signinform')
        $form.on('submit',(e)=>{
            e.preventDefault()
            const name = $form.find('input[name=name]').val()
            const password = $form.find('input[name=password]').val();
            console.log('456');
            console.log(name,password);
            $.ajax({
                method:"POST",
                url:'/sign_in',
                contentType:'text/json;charset=UTF-8',
                data:JSON.stringify({name,password})
            }).then(()=>{
                alert('登录成功')
                location.href='/index1.html'
            },()=>{
               alert('账号或密码错误')
            })
        })